package com.gitee.maskit.jackson.converter;

import com.fasterxml.jackson.databind.util.StdConverter;

public class JacksonBooleanToByte extends StdConverter<Boolean, Byte> {
    public Byte convert(Boolean value) {
        return null != value && value ? (byte) 1 : (byte) 0;
    }
}
